package sort;

/**
 * 冒泡排序
 * @author Administrator
 *
 */
public class MaopaoSort {

	public static void main(String args[]) {
		
		int score[] = {9,8,6,5,3}; 
		
		for( int i = 0; i < score.length-1 ; i++){
			for( int j = 0; j < score.length-1 -i ;j++ ){
				if(score[j] > score[j + 1] ){
					int temp = score[j];
					score[j] = score[j + 1];
					score[j + 1] = temp;
				}
			}
			for( int k = 0 ; k < score.length; k++){
				System.out.print("" + score[k] + "_");
			}
			System.out.println();
		}
		
	}
}
